Page({
  data: {},
  // 事件处理函数
  takePhoto() {
    const ctx = wx.createCameraContext()
    ctx.takePhoto({
      quality: 'normal',
      success: (res) => {
        wx.navigateTo({
          url: `../result/index?path=${res.tempImagePath}`,
        })
      }
    })
  },
})
